package com.teach.controller.photo;

import javax.servlet.http.HttpServletRequest;

import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import lombok.extern.slf4j.Slf4j;

@Controller
@RequestMapping("/photo")
@Slf4j
public class PhotoPageController {

	@RequestMapping("/")
	public String doIndex(HttpServletRequest request) {
		log.debug("ContextPath :[{}]", request.getContextPath()); 
		return "redirect:../";
	}
	@RequestMapping("news.html")
	public String doRedirectNews() {
		return "redirect:../news.html";
	}
	@RequestMapping("shop.html")
	public String doRedirectShop() {
		return "redirect:../shop.html";
	}
	@RequestMapping("hotel.html")
	public String doRedirectHotel() {
		return "redirect:../hotel.html";
	}
	@RequestMapping("food.html")
	public String doRedirectFood() {
		return "redirect:../food.html";
	}
	@RequestMapping("user.html")
	public String doRedirectUser() {
		return "redirect:../user.html";
	}
	@RequestMapping("photo/index.html")
	public String doRedirectPhoto() {
		return "redirect:../index.html";
	}
}
